<?php
defined('ROOTPATH') OR exit('Forbidden');

// 定义libs文件夹路径
$libs = ROOTPATH.'libs/';

// 扫描libs文件夹下所有文件
$libs_name = scandir($libs);

// 遍历并判断lib_开头的文件并引入
foreach ($libs_name as $filename) {
    if (substr($filename, 0, 3) == 'lib') {
        require_once ROOTPATH.'libs/'.$filename;
    }
}
